import createStore from 'ipreact-for-react'
import { UserInfo } from '../../apis';

export interface PopupStore {
    loading?: boolean;
    /** 用户信息 */
    loginUser?: UserInfo;
}

const { dispatch, connect, getState } = createStore<PopupStore>()({
    loading: false,
    loginUser: null,
})
export { dispatch, connect, getState }